import 'package:flutter/material.dart';
import './colors.dart';

TextButton froyoFlatBtn(String text, onPressed) {
  return TextButton(
    onPressed: onPressed,
    child: Text(text, style: TextStyle(color: primaryColor)),
    style: TextButton.styleFrom(
      foregroundColor: primaryColor,
      // backgroundColor: primaryColor,
      shape: RoundedRectangleBorder(
        borderRadius: BorderRadius.circular(4),
      ),
    ),
  );
}

OutlinedButton froyoOutlineBtn(String text, onPressed) {
  return OutlinedButton(
    onPressed: onPressed,
    child: Text(text),
    style: OutlinedButton.styleFrom(
      foregroundColor: primaryColor,
      side: BorderSide(color: primaryColor), // 边框颜色
      shape: RoundedRectangleBorder(
        borderRadius: BorderRadius.circular(4),
      ),
    ),
    // textColor: primaryColor,
    // highlightedBorderColor: highlightColor,
    // borderSide: BorderSide(color: primaryColor),
    // shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(4)),
  );
}
